#ifndef QTAB_UI_H
#define QTAB_UI_H

#include <QCheckBox>
#include <QComboBox>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
#include <QScrollArea>
#include <QStringList>
#include <QTabWidget>
#include <QToolButton>
#include <QVBoxLayout>
#include <QWidget>
#include "Manga_ui_logic.h"
#include "ZhouBian_ui.h"
#include "ZhouBian_ui_logic.h"
#include "ip_port.h"

class EventGridWidget;
extern EventGridWidget *gridWidget;
class productgridwidget;
extern productgridwidget *gridWidget2;
class QTabUi : public QWidget
{
    Q_OBJECT

public:
    explicit QTabUi(ShoppingCartUI *newBuyCart, QWidget *parent = nullptr);
    QTabWidget m_tabWidget;
    ShoppingCartUI *m_newBuyCart;
    QVBoxLayout *vb;
    QLineEdit *lineEdit;
    QToolButton *searchButton;
    QLabel *lb1;
    QLabel *lb2;
    QComboBox *comboBox;
    //ShoppingCartLogic *shoppingCartLogic;
    // EventGridWidget *gridWidget;
    QScrollArea *scrollArea;
    QLineEdit *lineEdit2;
    QToolButton *searchButton2;
    QLabel *lb11;
    QLabel *lb22;
    QComboBox *categoryComboBox; // Dropdown for product category selection
    QComboBox *sortComboBox; // Dropdown for sorting options
    QComboBox *cityComboBox;     // Declare cityComboBox as a member variable
    QComboBox *filterComboBox;   // Declare filterComboBox as a member variable
    QScrollArea *scrollArea2;
    QTabWidget *getTabWidget();
    ~QTabUi();

private:
    void setupUi();
    // void onGetUserInfoButtonClicked();
signals:
};
#endif // QTAB_UI_H

